package cbh.tool;

/**
 * Created by hx-pc on 16-6-14.
 */
public class ToolBaseException extends Exception {

    private Integer code = 500;

    public ToolBaseException() {
    }

    public ToolBaseException(String message) {
        super(message);
    }

    public ToolBaseException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public ToolBaseException(String message, Throwable cause, Integer code) {
        super(message, cause);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
